/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import Bean.Book_TypeBean;
import com.sun.xml.rpc.processor.modeler.j2ee.xml.string;
import java.sql.SQLException;
import java.util.*;

/**
 *
 * @author Quang Thao
 */
public class Book_TypeBO {

    public List GetAll() throws Exception {
        Mapper.Book_TypeMapper map = new Mapper.Book_TypeMapper();
        List list = map.GetAll();
        map.closeConnection();
        return list;
    }

    public Book_TypeBean GetInfo(String id) throws Exception {
        Mapper.Book_TypeMapper map = new Mapper.Book_TypeMapper();
        Book_TypeBean bktype = map.GetInfo(id);
        map.closeConnection();
        return bktype;
    }
}
